#include "radiobutton3.h"
#include "ui_radiobutton3.h"
#include <QButtonGroup>

radioButton3::radioButton3(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::radioButton3)
{
    ui->setupUi(this);

    // 使用QButtonGroup管理按钮
    QButtonGroup *g1 = new QButtonGroup(this);
    QButtonGroup *g2 = new QButtonGroup(this);
    QButtonGroup *g3 = new QButtonGroup(this);

    g1->addButton(ui->radioButton);
    g1->addButton(ui->radioButton_2);
    g1->addButton(ui->radioButton_3);

    g2->addButton(ui->radioButton_4);
    g2->addButton(ui->radioButton_5);
    g2->addButton(ui->radioButton_6);

    g3->addButton(ui->radioButton_7);
    g3->addButton(ui->radioButton_8);
    g3->addButton(ui->radioButton_9);
}

radioButton3::~radioButton3()
{
    delete ui;
}
